﻿using System.Runtime.Serialization;

namespace Controllers
{
    [DataContract]
    public class ResultMessages
    {
        [DataMember]
        public bool Result;//是否成功

        [DataMember]
        public ErrorType ErrType;//失败类型,未登录,未授权或其他原因

        [DataMember]
        public string Message;//回传的消息(成功/失败的原因和说明等)

        [DataMember]
        public object Data;//回传的数据
    }

    //Added by YYf on 20110412 15:20
    public enum ErrorType
    {
        UnAuthentication,UnAuthorization,Others
    }
}